HTMLify
style.css
Views: 13 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | body { margin: 0; font-family: sans-serif; color: #333; } /* Menu Start */ .menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.25rem; background-color: #5c6fda; clip-path: circle(20px at calc(100vw - 5vw) 31px); transition: clip-path 0.5s; } .menu li { position: relative; z-index: 5; } .menu a { text-decoration: none; color: rgb(46, 45, 45); font-size: 1.125rem; text-transform: uppercase; font-weight: bold; display: inline-block; width: 120px; padding: 5px; } .btn { position: absolute; top: 20px; left: calc(100vw - 5vw); transform: translateX(-50%); cursor: pointer; } .btn > span { width: 3px; height: 3px; display: block; border: 2px solid white; border-radius: 50%; margin-bottom: 1px; } .highlight { position: absolute; top: 0; width: 0; height: 0; background-color: white; transition: transform 0.3s; } /* Menu End */ /* Image Container Start */ .image-container { height: 70vh; display: flex; justify-content: center; align-items: center; } .img { width: 250px; height: 250px; margin: 20px; } .img-one { background-image: url(images/atharva-tulsi-6ftd4RgUdnk-unsplash.jpg); background-size: cover; background-position: center; } .img-two { background-image: url(images/6536956.jpg); background-size: cover; background-position: center; } /* Image Container End */ /* Headings Start */ .container { padding: 0 5vw; display: flex; justify-content: center; align-items: center; } article { padding: 20px 0; } article > h2 { text-transform: uppercase; font-size: 2rem; text-align: center; } .para { max-width: 700px; color: rgb(79, 77, 77); padding: 10px; text-align: center; line-height: 22px; } /* Headings End */ |